home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJLSR106.ARJ / PUTS.C < prev    next >
C/C++ Source or Header  |  1992-03-02  |  485b  |  22 lines

  1. /* This is file PUTS.C */
  2. /* This file may have been modified by DJ Delorie (Jan 1991).  If so,
  3. ** these modifications are Coyright (C) 1991 DJ Delorie, 24 Kirsten Ave,
  4. ** Rochester NH, 03867-2954, USA.
  5. */
  6.  
  7. #if defined(LIBC_SCCS) && !defined(lint)
  8. static char sccsid[] = "@(#)puts.c    5.2 (Berkeley) 3/9/86";
  9. #endif LIBC_SCCS and not lint
  10.  
  11. #include    <stdio.h>
  12.  
  13. puts(s)
  14. register const char *s;
  15. {
  16.     register c;
  17.  
  18.     while (c = *s++)
  19.         putchar(c);
  20.     return(putchar('\n'));
  21. }
  22.